package it.uniroma2.structure;

import java.io.Serializable;

public class Import implements BPEL_Element, Serializable{
	private final String importType = "http://schemas.xmlsoap.org/wsdl/";
	private String location;
	private String namespace;
	private Service service;
	
	
	public Service getService() {
		return service;
	}


	public Import(Service s, String namespace, String loc){
		this.service = s;
		this.location = loc;
		this.namespace = namespace;
	}
	
	
	@Override
	public String toBPEL() {
		String output = "<" + importTag + " namespace=\"" + this.namespace + "\" location=\"" + this.location + "\" importType=\"" + this.importType + "\">\n";
		output = output + "</" + importTag + ">\n";
		return output;
	}

}
